<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/app_wgjy/table_wgjy.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/app_wgjy/table_wgjy_PG.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "table_wgjy2",
        setup() {
            const table = ref({
                key: "id",
                footer: "Foots",
                cnName: "外观检验",
                name: "app_wgjy/table_wgjy2",
                newTabEdit: false,
                url: "/table_wgjy2/",
                sortName: "id"
            });
            const editFormFields = ref({"order_name":"","lot":"","pro_gen":"","re_lot":"","data_time":"","guige_cc":"","pro_code":"","per_weight":"","gred":"","y_h_qty":"","fh_qty":"","ok_qty":"","lost_qty":"","light_point":"","lie_W":"","sha_yan":"","gui_you":"","ct_no":"","yang_hua":"","dao_heng":"","chuzhi":"","all_chicun":"","beng_side":"","dao_C":"","black_side":"","jb_tjp":"","jb_lost":"","all_keb":"","all_mk":"","song_ce":"","qipao":"","ducengsec":"","jieheli_no":"","ducan":"","aokeng":"","pengt_jq":"","pengT_zw":"","r_kb":"","qian_kb":"","pentu_yw":"","hou_kb":"","kf_ex":"","kf_ducse":"","kf_duchh":"","kf_qipao":"","kf_cc":"","kf_kb":"","kf_ak":"","kf_jq":"","kf_yw":"","kf_zw":"","kf_dd":"","c_total":"","kf_total":"","backup":"","banzu":"","jianyan_part":"","backup_2":"","wupan":"","lou_jv":"","oqc":"","data_time_2":""});
            const editFormOptions = ref([[{"title":"工单号","field":"order_name","type":"text","disabled":true},                                
                               {"title":"批次号","required":true,"field":"lot","disabled":true},
                               {"title":"检包工段","field":"pro_gen","disabled":true},                               
                               {"title":"回收档位","field":"re_lot","disabled":true},
                               {"title":"规格尺寸","field":"guige_cc","disabled":true},
                               {"title":"生成时间","field":"data_time","disabled":true}],
                              [{"title":"产品代码","field":"pro_code","disabled":true},
                               {"title":"单重","field":"per_weight","disabled":true},
                               {"title":"性能","field":"gred","disabled":true},
                               {"title":"应回数","field":"y_h_qty","disabled":true},
                               {"title":"返回数","field":"fh_qty","disabled":true},
                               {"title":"合格数","required":true,"field":"ok_qty","disabled":true},
                               {"title":"流失片数","field":"lost_qty","disabled":true}],
                              [{"title":"亮点","field":"light_point","disabled":true},
                               {"title":"裂纹","field":"lie_W","disabled":true},
                               {"title":"砂眼","field":"sha_yan","disabled":true},
                               {"title":"硅油","field":"gui_you","disabled":true},
                               {"title":"磁通不良","field":"ct_no","disabled":true},
                               {"title":"氧化","field":"yang_hua","disabled":true}],
                              [{"title":"刀痕","field":"dao_heng","disabled":true},
                               {"title":"垂直超差度","field":"chuzhi","disabled":true},
                               {"title":"总尺寸超差","field":"all_chicun","disabled":true},
                               {"title":"崩边","field":"beng_side","disabled":true},
                               {"title":"倒C角残","field":"dao_C","disabled":true},
                               {"title":"黑边磕边","field":"black_side","disabled":true},
                               {"title":"总磕边","field":"all_keb","disabled":true},
                               {"title":"总麻坑","field":"all_mk","disabled":true},
                               {"title":"送测样品","field":"song_ce","disabled":true},
                               {"title":"检包落地片数","field":"jb_lost","disabled":true},
                               {"title":"检包调机品","field":"jb_tjp","disabled":true}],
                              [{"title":"气泡","field":"qipao","disabled":true},
                               {"title":"镀层色差","field":"ducengsec","disabled":true},
                               {"title":"结合力不良","field":"jieheli_no","disabled":true},
                               {"title":"镀残","field":"ducan","disabled":true},
                               {"title":"凹坑","field":"aokeng","disabled":true},
                               {"title":"喷涂集漆","field":"pengt_jq","disabled":true},
                               {"title":"喷涂粘网","field":"pengT_zw","disabled":true},
                               {"title":"喷涂异物","field":"pentu_yw","disabled":true},
                               {"title":"R角磕边","field":"r_kb","disabled":true},
                               {"title":"前处理磕边","field":"qian_kb","disabled":true},
                               {"title":"后处理磕边","field":"hou_kb","disabled":true}],
                              [{"title":"可返实验","field":"kf_ex","disabled":true},
                               {"title":"可返镀层色差","field":"kf_ducse","disabled":true},
                               {"title":"可返镀厚划痕","field":"kf_duchh","disabled":true},
                               {"title":"可返气泡","field":"kf_qipao","disabled":true},
                               {"title":"可返超差","field":"kf_cc","disabled":true},
                               {"title":"可返磕边","field":"kf_kb","disabled":true},
                               {"title":"可返凹坑","field":"kf_ak","disabled":true},
                               {"title":"可返集漆","field":"kf_jq","disabled":true},
                               {"title":"可返异物","field":"kf_yw","disabled":true},
                               {"title":"可返粘网","field":"kf_zw","disabled":true},
                               {"title":"可返电镀掉漆","field":"kf_dd","disabled":true}],
                              [{"title":"残总和","field":"c_total","disabled":true},
                               {"title":"可返总和","field":"kf_total","disabled":true},
                               {"title":"检分厂备注","field":"backup","type":"textarea","disabled":true},
                               {"title":"班组","field":"banzu","disabled":true},
                               {"title":"检验员","field":"jianyan_part","disabled":true}],
                              [{"title":"品管备注","field":"backup_2","type":"textarea"},
                               {"title":"误判率","required":true,"field":"wupan"},
                               {"title":"漏检率","required":true,"field":"lou_jv"},
                               {"title":"OQC","field":"oqc"},
                               {"title":"品管输入时间","field":"data_time_2","type":"datetime"},
                               {"title":"上传MES时间","field":"isupmes_time","type":"datetime"}]]);
            const searchFormFields = ref({"order_name":""});
            const searchFormOptions = ref([[{"title":"工单号","field":"order_name"}]]);
            const columns = ref([{field:"order_name",title:"工单号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"pro_code",title:"产品代码",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"lot",title:"批次号",type:"string",width:120,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"pro_gen",title:"检包工段",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"re_lot",title:"回收档位",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"data_time",title:"生成时间",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"guige_cc",title:"规格尺寸",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"per_weight",title:"单重",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"gred",title:"性能",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"y_h_qty",title:"应回数",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"fh_qty",title:"返回数",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"ok_qty",title:"合格数",type:"string",width:120,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"lost_qty",title:"流失片数",type:"string",width:120,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"light_point",title:"亮点",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"lie_W",title:"裂纹",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"sha_yan",title:"砂眼",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"gui_you",title:"硅油",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ct_no",title:"磁通不良",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"yang_hua",title:"氧化",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"dao_heng",title:"刀痕",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"chuzhi",title:"垂直超差度",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"all_chicun",title:"总尺寸超差",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"beng_side",title:"崩边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"dao_C",title:"倒C角残",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"black_side",title:"黑边磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"jb_tjp",title:"检包调机品",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"jb_lost",title:"检包落地片数",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"all_keb",title:"总磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"all_mk",title:"总麻坑",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"song_ce",title:"送测样品",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"qipao",title:"气泡",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ducengsec",title:"镀层色差",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"jieheli_no",title:"结合力不良",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ducan",title:"镀残",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"aokeng",title:"凹坑",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"pengt_jq",title:"喷涂集漆",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"pengT_zw",title:"喷涂粘网",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"r_kb",title:"R角磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"qian_kb",title:"前处理磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"pentu_yw",title:"喷涂异物",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"hou_kb",title:"后处理磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_ex",title:"可返实验",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_ducse",title:"可返镀层色差",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_duchh",title:"可返镀厚划痕",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_qipao",title:"可返气泡",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_cc",title:"可返超差",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_kb",title:"可返磕边",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_ak",title:"可返凹坑",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_jq",title:"可返集漆",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_yw",title:"可返异物",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_zw",title:"可返粘网",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_dd",title:"可返电镀掉漆",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"c_total",title:"残总和",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"kf_total",title:"可返总和",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"backup",title:"检分厂备注",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"banzu",title:"班组",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"backup_2",title:"品管备注",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"wupan",title:"误判率",type:"string",width:120,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"lou_jv",title:"漏检率",type:"string",width:120,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"oqc",title:"OQC",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"data_time_2",title:"品管输入时间",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"id",title:"id",type:"int",width:120,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"jianyan_part",title:"检验员",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"isupdata_time",title:"上传时间",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"isupmes_time",title:"上传MES时间",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"diandu_ok_qty",title:"电镀合格数",type:"string",width:120,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
